//
//  RootViewController.m
//  王博男 早分享
//
//  Created by dllo on 15/12/10.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "RootViewController.h"
#import "SDCycleScrollView.h"

@interface RootViewController () <SDCycleScrollViewDelegate>

@end

@implementation RootViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    NSArray *arr1 = @[[UIImage imageNamed:@"005.jpg"], [UIImage imageNamed:@"h1.jpg"], [UIImage imageNamed:@"h2.jpg"], [UIImage imageNamed:@"h3.jpg"], [UIImage imageNamed:@"h4.jpg"]];
    SDCycleScrollView *cycSV = [SDCycleScrollView cycleScrollViewWithFrame:CGRectMake(10, 60, self.view.frame.size.width - 20, 180)imagesGroup:arr1];
      [self.view addSubview:cycSV];
    
//    NSArray *imagesURLStrings = @[
//                                  @"https://ss2.baidu.com/-vo3dSag_xI4khGko9WTAnF6hhy/super/whfpf%3D425%2C260%2C50/sign=a4b3d7085dee3d6d2293d48b252b5910/0e2442a7d933c89524cd5cd4d51373f0830200ea.jpg",
//                                  @"https://ss0.baidu.com/-Po3dSag_xI4khGko9WTAnF6hhy/super/whfpf%3D425%2C260%2C50/sign=a41eb338dd33c895a62bcb3bb72e47c2/5fdf8db1cb134954a2192ccb524e9258d1094a1e.jpg",
//                                  @"http://c.hiphotos.baidu.com/image/w%3D400/sign=c2318ff84334970a4773112fa5c8d1c0/b7fd5266d0160924c1fae5ccd60735fae7cd340d.jpg"
//                                  ];
//    
//    
//    NSArray *titles = @[@"aa", @"bb", @"cc"];
//    
//  
//    SDCycleScrollView *cycSV1 = [SDCycleScrollView cycleScrollViewWithFrame:CGRectMake(10, 300, self.view.frame.size.width - 20, 180) delegate:self placeholderImage:[UIImage imageNamed:@"placeholder@2x.png"]];
//    cycSV1.titlesGroup = titles;
//    cycSV1.imageURLStringsGroup=  imagesURLStrings;
//    [self.view addSubview:cycSV1];
//    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
